#include <iostream>
#include <vector>
#include <math.h>

struct HaarObject{
	HaarObject(unsigned x, unsigned y, unsigned w, unsigned h) {
		this->x = x;
		this->y = y;
		this->w = w;
		this->h = h;
	}

	unsigned x, y, w,h, count;

	void printme(){
		printf("x, y, w, h = %d,%d,%d,%d\n", this->x, this->y, this->w, this->h);
	}
};

int main(){
	/*
	std::vector<int> vObjVector;
	vNumbers.push_back(1);
	vNumbers.push_back(2);
	vNumbers.push_back(3);

	for(unsigned i=0;i<vNumbers.size();i++)
		printf("yihaa %d", vNumbers[i]);
	*/


	HaarObject haarObj1(50, 100, 640, 480);
	HaarObject haarObj2(51, 101, 641, 481);
	HaarObject haarObj3(52, 102, 642, 482);

	std::vector<HaarObject> haarObjVect1,haarObjVect2;
	haarObjVect1.push_back(haarObj1);
	haarObjVect1.push_back(haarObj2);
	haarObjVect2.push_back(haarObj3);

	std::vector< std::vector<HaarObject> > haarObjVectS;
	haarObjVectS.push_back(haarObjVect1);
	haarObjVectS.push_back(haarObjVect2);
	//haarObjVectHist

	

	for(unsigned a=0;a<haarObjVectS.size();a++){
		printf("a = %d\n",a);
		for(unsigned i=0;i<haarObjVectS[a].size();i++){
			printf("i = %d\n",i);
			haarObjVectS[a][i].printme();
		}
	}

	printf("%f",sqrt((2*2+3*3)));

	return 0;

}
